﻿using CID.Domain.Development;
using CID.Domain.Infrastructure;

namespace CID.Domain.Persistence.Mappings.Infrastructure
{
    public class PackageMap : EntityMap<Package>
    {
        public PackageMap () : base()
        {
            Map(x => x.Content).CustomSqlType("VARBINARY(MAX)");
            Map(x => x.Comment).Length(1024).Not.Nullable();
            References<PackageType>(x => x.Type).Column("PackageType_id");
            References<Version>(x => x.Version);
        }
    }
}
